import { ref, onMounted, onUnmounted } from 'vue'

export function MinMap() {
  function errorImg(e) {
    let img = e.srcElement
    img.src = require('@/assets/images/detailPersonErroe.png')
    img.onerror = null
  }

  function addPolyton(data) {
    localStorage.setItem('polyon',JSON.stringify(data))
  }

  return { errorImg,addPolyton }
}